
class Person {
  // 语法糖
  constructor(public name: string, public age: number, readonly gender: string) {
    
  }

  running() {
    console.log(this.name, this.age, this.gender, 'running')
  }
}

const p = new Person('Syntactic sugar', 18, 'male')
p.running()
console.log(p.name, p.age, p.gender)

export {}
